<?php 
/**
 * GioCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@ninhgio.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2010-2011 GioCMS (http://cms.ninhgio.com)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @author		NinhGio - ninhgio@gmail.com
 * @since		1.0
 */
?>
<div id="<?php echo $this->module; ?>_<?php echo $this->widget; ?>_<?php echo $this->action; ?>_<?php echo $this->uuid; ?>" class="g_widget">
	<script type="text/javascript">
	$(document).ready(function() {
		Gio.Core.Widget.Loader.baseUrl = '<?php echo $this->url('core_widget_ajax'); ?>';
		Gio.Core.Widget.Loader.cacheEnable = '<?php if ($this->cacheEnable) : ?>true<?php else : ?>false<?php endif; ?>';
		Gio.Core.Widget.Loader.cacheTimeout = '<?php if ($this->cacheTimeout) : ?><?php echo $this->cacheTimeout; ?><?php endif; ?>';
		Gio.Core.Widget.Loader.queueAction('<?php echo $this->module; ?>', '<?php echo $this->widget; ?>', '<?php echo $this->action; ?>', '<?php echo $this->params; ?>', $('#<?php echo $this->module; ?>_<?php echo $this->widget; ?>_<?php echo $this->action; ?>_<?php echo $this->uuid; ?>'), null);
	});
	</script>
</div>	